<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta content="initial-scale=1.0,user-scalable=no,maximum-scale=1,width=device-width" name="viewport" />
<meta content="yes" name="apple-mobile-web-app-capable" />
<meta content="black" name="apple-mobile-web-app-status-bar-style" />
<meta content="telephone=no" name="format-detection" />
<title>无标题文档</title>
<script src="js/jquery.js"></script>
    <script src="/jquery-2.2.3.min.js"></script>
    <script src="/method.js"></script>
    <#include "public/app/mxcss.ftl">
</head>

<body>
<article class="hometop"><a href="javascript:history.back(-1);" class="left"><img src="/images/arrow-left.png"></a> <span>输入交易密码</span> </article>
<article class="usercenter">
    <section class="userlist mt22">
        <ul>        	
            <li>
                <ul>
                    <li class="fl"> <span>银&nbsp;&nbsp;行&nbsp;&nbsp;卡：</span> </li>
                    <li class="fl"> <span>${Session.cardMap.newName?if_exists} 尾号${Session.cardMap.newCode?if_exists}</span> </li>
				</ul>                           
            </li>
            <li>
                <ul>
                    <li class="fl"> <span>充值金额：</span> </li>
                    <#if Session.addAllMoney??>
                    <li class="fl"> <span><em class="forange">${Session.addAllMoney?if_exists}元</em></span> </li>
                    </#if>
				</ul>
                <div class="tips">
                    <#if Session.addNewMoney??>
                	<p>您的充值预计于 2014-01-01 到账，实际上账金额 ${Session.addNewMoney?if_exists} 元</p>
                    </#if>
				</div>               
            </li>
        </ul>
    </section>
    <p>手续费：10.00 元</p>
    <section class="userlist mt12">
        <ul>
        	<li>
                <ul>
                    <li class="fl"> <span>输入交易密码：</span> </li>
                    <li class="fl"> <span><input type="password" id="tradePassword" placeholder="请输入您的交易密码"></span> </li>
				</ul>
            </li>
        </ul>
    </section>
    <aside class="ml22 mr22 mb22 mt22"> <a href="javascript:tradePass()" class="btn btn-orange">下一步</a> </aside>
</article>
<script>
    function tradePass(){
        var tradePassword = $("#tradePassword").val();
        if(tradePassword == ""){
            alert("交易密码不能为空");
            return ;
        }
        var data = {tradePassword : tradePassword};
        var url="/recharge/tradepass";
        postReq(url,data,function(result){
            if(result.success){
                location.href="/recharge/rechargesuccess";
            }else{
                alert(result.msg);
            }
        })
    }
</script>
</body>
</html>